package com.lyk.jsbridgeyuangong.activity;

import android.os.Bundle;

import com.lyk.jsbridgeyuangong.common.LoadingDialog;
import com.zhy.autolayout.AutoLayoutActivity;


/**
 * Created by shenshao on 2018/2/23.
 */
public class BaseActivty2 extends AutoLayoutActivity {

    private LoadingDialog mLoadingDialog;

    public void showLoading() {
        mLoadingDialog = new LoadingDialog(this);
        if (mLoadingDialog != null && mLoadingDialog.isShowing()) return;
        mLoadingDialog.show();
    }

    public void dismissLoading() {
        if (mLoadingDialog != null && mLoadingDialog.isShowing()) {
            mLoadingDialog.dismiss();
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
}
